/**
 * Created by fdg282 on 2017/11/2.
 */
/**function ajaxShow() {
    var paging = 0;//页码数
    // dropload函数接口设置
     $('.scroll_news').dropload({
        scrollArea: window,
         domDown: {
             domClass: 'dropload-down',
             // 滑动到底部显示内容
             domRefresh: '<div class="dropload-refresh"><span class="loading"></span></div>',
             // 内容加载过程中显示内容
             domLoad: '<div class="dropload-load"><span class="loading"></span></div>',
             // 没有更多内容-显示提示
             domNoData: '<div class="dropload-noData">暂无数据</div>'
         },
        // 下拉刷新模块显示内容
        //  上拉加载更多 回调函数
        loadDownFn: function (me) {
       /*     var tag_id = $('#tag_id').val();
            var brand_id = $('#brand_id').val();
            var url = '/JDshopMaket/pc/data/news-list.json';
/*            var sort_type = $('#sort_type').val();
            var sort_val = $('#sort_val').val();
/*            url += '?per-page=' + page_size + '&page=' + paging + '&tag_id=' + tag_id + '&sort_type=' + sort_type + '&sort_val=' + sort_val;
     /*       if (eval(brand_id) > 0) {
                url += '&brand_id=' + brand_id;
            }
            paging++; // 每次请求，页码加1
            $.ajax({
                type: 'GET',
                url: url,
                dataType: 'json',
                success: function (data) {
                    var result = data.news;
                    // 选择需要显示的数据 拼接 DOM
                    if(result.length==0){
                        me.lock();
                        me.noData();
                        me.resetload();
                    }else {
                        var html = '';
                        for (var i = 0; i < result.length; i++) {
                            html += '<li class="item mt30">' +
                                '<a href="javascript:;"><img src=' + result[i].newsImg + ' alt=""/>' +
                                '<div class="news_info">' +
                                ' <h5 class="h5">' + result[i].title + '</h5>' +
                                ' <p class="item_info">' + result[i].newsInfo + '</p>' +
                                ' </div>' +
                                ' </a> ' +
                                '</li>';
                        }
                        setTimeout(function () {
                            $('#news-list').append(html);
                            me.resetload();
                        }, 500);
                        me.resetload();
                    }
                },
                error: function (xhr, type) {
                    console.log('加载出错了!');
                    me.resetload();
                }
            });
        },
        threshold:100,
    });
}
ajaxShow();*/